package com.java.training.coin;

public class Coin {

	public static void main(String[] args) {

		int total = 5;
		int result = 0;
		int one = 0;
		int five = 0;
		int sum = 0;
		int total1 = 3;
		int total5 = 3;
		int[] a = { 1, 1, 1, 5, 5, 5 };

		for (int i = 0; i <= a.length; i++) {
			for (int j = 1; j < a.length; j++) {

				System.out.println(result);

				if (result == total) {

					if (a[i] == 1)
						one++;

					if (a[i] == 5)
						five++;
					// System.out.println(sum);
				}

				sum = one * 1 + five * 5;

				// if (sum == total) {
				// System.out.println("yes");
				//
				break;
				// }
			}
		}

		System.out.println("1's =" + one + "   " + "5's =" + five);

	}
}
